<%= paginate @events %>
<ul>
  <% @events.each do |event| %>
      <li>
        <%= link_to event.name, event_path(event) %>
        <%= link_to " (XML)", event_path(event, :format => :xml) %>
        <%= link_to " (JSON)", event_path(event, :format => :json) %>
        <%= link_to 'edit', edit_event_path(event) %>
        <%= button_to 'delete', event_path(event), :method => :delete, :data => { :confirm => "Are you sure?" } %>
        <%= link_to 'attendees', event_attendees_path(event) %>
      </li>
  <% end %>
</ul>

<%= link_to 'new event', new_event_path %>
<%= link_to "Atom feed", events_path(:format => :atom) %>

